import request from '@/utils/request'

// 查询救济金捐赠列表
export function listRuralBenefitAnagementDonate(query) {
  return request({
    url: '/rural/ruralBenefitAnagementDonate/list',
    method: 'get',
    params: query
  })
}

// 查询救济金捐赠详细
export function getRuralBenefitAnagementDonate(id) {
  return request({
    url: '/rural/ruralBenefitAnagementDonate/' + id,
    method: 'get'
  })
}

// 新增救济金捐赠
export function addRuralBenefitAnagementDonate(data) {
  return request({
    url: '/rural/ruralBenefitAnagementDonate',
    method: 'post',
    data: data
  })
}

// 修改救济金捐赠
export function updateRuralBenefitAnagementDonate(data) {
  return request({
    url: '/rural/ruralBenefitAnagementDonate',
    method: 'put',
    data: data
  })
}

// 确认救济金到账
export function confirmRuralBenefitAnagementDonate(data) {
  return request({
    url: '/rural/ruralBenefitAnagementDonate/confirm',
    method: 'put',
    data: data
  })
}

// 删除救济金捐赠
export function delRuralBenefitAnagementDonate(id) {
  return request({
    url: '/rural/ruralBenefitAnagementDonate/' + id,
    method: 'delete'
  })
}
